<!--个人详情-->
<template>
  <div class="personDetail" v-if="isShowDrawer">
    <img class="img" :src="require('~/assets/images/avatar.svg')" alt="avatar" />
    <div class="content">
      <h2 class="name">KenNaNa</h2>
      <p class="title">Front End Developer</p>
      <div class="contact">
        <a class="tuite" href target="_blank">
          <i class="iconfont icon-tuite"></i>
        </a>
        <a class="github" href target="_blank">
          <i class="iconfont icon-GitHub"></i>
        </a>
      </div>
      <div class="follows">
        <div class="following" @click="onFollowingClick">
          <div class="num">60K</div>
          <div class="text">FOLLOWING</div>
        </div>
        <div class="follower" @click="onFollowerClick">
          <div class="num">120K</div>
          <div class="text">FOLLOWERS</div>
        </div>
        <div class="invitation" @click="onFollowerClick">
          <div class="num">0</div>
          <div class="text">INVITATES</div>
        </div>
      </div>

      <div class="nft">
        <div>
          <div class="text">NFTs</div>
          <div class="nfts">
            <div class="image"></div>
            <div class="image"></div>
            <div class="image"></div>
            <div class="image"></div>
          </div>
        </div>
      </div>

      <div class="poap">
        <div>
          <div class="text">POAPs</div>
          <div class="poaps">
            <div class="image"></div>
            <div class="image"></div>
            <div class="image"></div>
            <div class="image"></div>
          </div>
        </div>
      </div>

      <div class="coin">
        <div>
          <div class="text">COINs</div>
          <div class="coins">
            <div class="image"></div>
            <div class="image"></div>
            <div class="image"></div>
            <div class="image"></div>
          </div>
        </div>
      </div>

      <div class="follow-btn">
        <el-button style="margin-right: 10px" size="medium" type="text" @click="onFollow">Follow</el-button>
        <el-button style="margin-right: 10px" size="medium" type="text" @click="onShare">Share</el-button>
        <el-button style="margin-right: 10px" size="medium" type="text" @click="onInvitate">Invitate</el-button>
        <el-button type="text" @click="onMore">
          More...
          <i class="el-icon-arrow-down"></i>
        </el-button>
      </div>
    </div>
  </div>
</template>

<script lang="ts">
import { Component, Vue } from 'nuxt-property-decorator'
@Component({
  props: {
    isShowDrawer: {
      type: Boolean,
      default: false,
    },
  },
})
export default class PersonDetail extends Vue {
  onFollowingClick() {}
  onFollowerClick() {}
  onFollow() {}
  onMore() {}
  onInvitate() {}
  onShare() {}
}
</script>

<style lang="scss" scoped>
.personDetail {
  border-radius: 8px;
  margin-top: 20px;
  background: #1c1d26;
  &:hover {
    transition: box-shadow 0.5s;
    box-shadow: rgba(255, 255, 255, 0.25) 0px 54px 55px,
      rgba(255, 255, 255, 0.12) 0px -12px 30px,
      rgba(255, 255, 255, 0.12) 0px 4px 6px,
      rgba(255, 255, 255, 0.17) 0px 12px 13px,
      rgba(255, 255, 255, 0.09) 0px -3px 5px;
  }
  position: relative;
  padding: 10px;
  .img {
    position: absolute;
    top: 0%;
    margin-top: -20px;
    left: 50%;
    margin-left: -20px;
  }

  .content {
    margin-top: 30px;

    .name {
      color: #ffffff;
      text-align: center;
      font-family: 'Haas Grot Text R Web', 'Helvetica Neue', Helvetica, Arial,
        sans-serif;
    }

    .title {
      margin-top: 10px;
      text-align: center;
      font-family: 'Haas Grot Text R Web', 'Helvetica Neue', Helvetica, Arial,
        sans-serif;
      font-size: 16px;
      font-weight: 400;
      line-height: 28px;
      color: #9e9ea7;
    }

    .contact {
      margin-top: 10px;
      text-align: center;
      a {
        text-decoration: none;
        i {
          font-size: 30px;
        }
        &.tuite {
          margin-right: 10px;
        }
      }
      i {
        cursor: pointer;
        font-size: 30px;
        color: #ffffff;
      }
    }
  }
  .follows {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    text-align: center;
    .invitation {
      cursor: pointer;
      &:hover {
        .text {
          color: #ffffff;
        }
      }
      .num {
        font-size: 20px;
      }
      .text {
        font-size: 12px;
        color: #9e9ea7;
      }
    }
    .following {
      cursor: pointer;
      &:hover {
        .text {
          color: #fff;
        }
      }
      margin-right: 30px;
      .num {
        font-size: 20px;
      }
      .text {
        font-size: 12px;
        color: #9e9ea7;
      }
    }
    .follower {
      cursor: pointer;
      margin-right: 30px;
      &:hover {
        .text {
          color: #fff;
        }
      }
      .num {
        font-size: 20px;
      }
      .text {
        font-size: 12px;
        color: #9e9ea7;
      }
    }
  }
  .follow-btn {
    margin-top: 30px;
    padding-bottom: 30px;
    display: flex;
    justify-content: center;
  }
  .nft {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    .text {
      padding-bottom: 10px;
      margin: 0;
      color: #ffffff;
    }
    .nfts {
      display: flex;
      .image {
        border-radius: 6px;
        border: 1px dashed #ffffff;
        height: 62px;
        width: 62px;
        margin-right: 5px;
        &:last-of-type {
          margin-right: 0;
        }
      }
    }
  }
  .poap {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    .text {
      padding-bottom: 10px;
      margin: 0;
      color: #ffffff;
    }
    .poaps {
      display: flex;
      .image {
        border-radius: 6px;
        border: 1px dashed #ffffff;
        height: 62px;
        width: 62px;
        margin-right: 5px;
        &:last-of-type {
          margin-right: 0;
        }
      }
    }
  }
  .coin {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    .text {
      padding-bottom: 10px;
      margin: 0;
      color: #ffffff;
    }
    .coins {
      display: flex;
      .image {
        border-radius: 6px;
        border: 1px dashed #ffffff;
        height: 62px;
        width: 62px;
        margin-right: 5px;
        &:last-of-type {
          margin-right: 0;
        }
      }
    }
  }
}
</style>
